package com.zetxek.meteogalicia.datasets;

import java.text.ParseException;
import java.util.Date;

public class PrediccionCP extends Prediccion {
	private String comentario;
	private String nomeZona;
	private String idZona;
	private Date dataCreacion;
	private Date dataPred;
	private Integer TMax;
	private Integer TMin;
	private String ceoM;
	private String ceoT;
	private String ceoN;
	private String ventoM;
	private String ventoT;
	private String ventoN;
	
	public String getComentario() {
		return comentario;
	}

	public void setComentario(String comentario) {
		this.comentario = comentario;
	}

	public String getNomeZona() {
		return nomeZona;
	}

	public void setNomeZona(String nomeZona) {
		this.nomeZona = nomeZona;
	}

	public String getIdZona() {
		return idZona;
	}

	public void setIdZona(String idZona) {
		this.idZona = idZona;
	}

	public Date getDataCreacion() {
		return dataCreacion;
	}

	public void setDataCreacion(Date dataCreacion) {
		this.dataCreacion = dataCreacion;
	}
	
	public void setDataCreacion(String date) {
		// pad the date if necessary
		while (!date.endsWith("00")){
			date += "0";
		}
		try {
			this.dataCreacion = super.getFORMATTER().parse(date.trim());
		} catch (ParseException e) {
			throw new RuntimeException(e);
		}	}
	

	public Date getDataPred() {
		return dataPred;
	}

	public void setDataPred(Date dataPred) {
		this.dataPred = dataPred;
	}
	
	public void setDataPred(String date) {
		// pad the date if necessary
		while (!date.endsWith("00")){
			date += "0";
		}
		try {
			this.dataPred = super.getFORMATTER().parse(date.trim());
		} catch (ParseException e) {
			throw new RuntimeException(e);
		}	}
	

	public Integer getTMax() {
		return TMax;
	}

	public void setTMax(Integer max) {
		TMax = max;
	}

	public Integer getTMin() {
		return TMin;
	}

	public void setTMin(Integer min) {
		TMin = min;
	}

	public String getCeoM() {
		return ceoM;
	}

	public void setCeoM(String ceoM) {
		this.ceoM = ceoM;
	}

	public String getCeoT() {
		return ceoT;
	}

	public void setCeoT(String ceoT) {
		this.ceoT = ceoT;
	}

	public String getCeoN() {
		return ceoN;
	}

	public void setCeoN(String ceoN) {
		this.ceoN = ceoN;
	}

	public String getVentoM() {
		return ventoM;
	}

	public void setVentoM(String ventoM) {
		this.ventoM = ventoM;
	}

	public String getVentoT() {
		return ventoT;
	}

	public void setVentoT(String ventoT) {
		this.ventoT = ventoT;
	}

	public String getVentoN() {
		return ventoN;
	}

	public void setVentoN(String ventoN) {
		this.ventoN = ventoN;
	}

}
